package test;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SetCollection extends HttpServlet{
	@Override
	protected void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{
		Address[] addr=new Address[3];
		addr[0]=new Address("沈阳","浑南新区");
		addr[1]=new Address("成都","浑南新区");
		addr[2]=new Address("西宁","浑南新区");
		request.setAttribute("addr", addr);
		RequestDispatcher rd=request.getRequestDispatcher("SetCollection.jsp");
		rd.forward(request, response);
	}
}
